package com.sgb.kjwl.viewmodel.self.company
import androidx.lifecycle.MutableLiveData
import com.swgk.core.base.BaseViewModel
import com.swgk.core.util.PickSelectEntity

class AgreementViewModel : BaseViewModel() {

    private val mTitles = arrayListOf("采购", "租赁", "物流", "承包", "服务", "合作")

    var titles = MutableLiveData<List<PickSelectEntity<Any>>>()

    fun getTitle(){
        var list = mTitles.mapIndexed{index, s ->
            PickSelectEntity<Any>().apply {
                no = "".plus(index + 1)
                projectscale = s
            }
        }
        titles.postValue(list)
    }

}